/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package comportement;

import java.io.Serializable;
import plateau.Joueur;

/**
 *
 * @author Arthur
 */
public class IncidentDefausserClasseRace implements IncidentFacheux, Serializable {
    
    protected boolean classe;
    protected boolean race;

    public IncidentDefausserClasseRace(boolean classe, boolean race) {
        this.classe = classe;
        this.race = race;
    }

    public void provoquer(Joueur j) {
        if( this.classe )
            j.defausserInventaire(j.getInventaire().getCartesClasse());
        if( this.race ) 
            j.defausserInventaire(j.getInventaire().getCartesRace());
    }

    public String getDescription() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    
    
}
